package com.macrounion.atv.service.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.macrounion.atv.service.entity.ProtocolC;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProtocolCMapperExt {

    int saveProtocolCs(List<ProtocolC> protocolCS);

    int getCountByMid(@Param("mid") String mid, @Param("protocolId") String protocolId);

    int getCountByChannelCode(@Param("channelCode") String channelCode, @Param("protocolId") String protocolId);

    int deleteByProtocolId(@Param("protocolId") String protocolId);

    String getMaxChannelCodeByProtocolId(@Param("protocolId") String protocolId, @Param("trap") Integer trap);

    List<ProtocolC> getByProtocolId(String pid);

    int deleteRows(List<String> ids);

    String getNameByChannelCodeNPid(@Param("channelCode") String channelCode, @Param("protocolId") String protocolId);

    int updateTranslate(ProtocolC protocolC);
}